package com.doraro.platform.module.user.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Set;

@Data
public class UserDetail {
    @ApiModelProperty(value = "用户id")
    private String id;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "上次登录时间")
    private LocalDateTime lastLoginTime;
    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "用户名")
    private String nickName;

    @ApiModelProperty(value = "上次登录的ip地址")
    private String ip;

    @ApiModelProperty(value = "注册邮箱")
    private String email;

    @ApiModelProperty(value = "状态 0：禁用 1：正常")
    private Integer userStatus;

    @ApiModelProperty(value = "0-空闲中 1-工作中")
    private Integer isWorking;

    @ApiModelProperty(value = "角色列表")
    private List<String> roleList;
    @ApiModelProperty(value = "权限列表")
    private Set<String> permList;

}
